/*
 * Copyright 2020 wangruiCoder owner
 */

package org.disk.frame.logger.config;

import org.disk.frame.logger.constant.LogClientType;
import org.springframework.boot.context.properties.ConfigurationProperties;

import java.util.Map;

/**
 * 类描述
 * <p>详细描述</p>
 *
 * @author kyrie 2021/4/23 9:38 上午
 * @since jdk1.8
 */
@ConfigurationProperties(prefix = DiskFrameLoggerConfiguration.PREFIX)
public class DiskFrameLoggerConfiguration {
    /**
     * 配置前缀
     */
    public static final String PREFIX = "disk.frame.logger";
    /**
     * true开启,false关闭
     */
    private boolean enable = true;
    /**
     * 日志客户端类型 {@link LogClientType}
     */
    private LogClientType clientType = LogClientType.REDIS;
    /**
     * 日志队列名称
     */
    private String queueName = "org:disk:frame:httplogs";
    /**
     * 元数据,支持用户自定义扩展使用
     */
    private Map<String,String> metadata;

    public boolean isEnable() {
        return enable;
    }

    public void setEnable(boolean enable) {
        this.enable = enable;
    }

    public LogClientType getClientType() {
        return clientType;
    }

    public void setClientType(LogClientType clientType) {
        this.clientType = clientType;
    }

    public String getQueueName() {
        return queueName;
    }

    public void setQueueName(String queueName) {
        this.queueName = queueName;
    }

    public Map<String, String> getMetadata() {
        return metadata;
    }

    public void setMetadata(Map<String, String> metadata) {
        this.metadata = metadata;
    }
}
